package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 秒杀结果表
 * </p>
 *
 * @author Easy
 * @since 2025-09-09
 */
@Getter
@Setter
@ToString
@TableName("seckill_result")
public class SeckillResult implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private String id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 活动ID
     */
    private Integer activityId;

    /**
     * 秒杀结果(0:失败,1:成功)
     */
    private Byte result;

    /**
     * 秒杀时间
     */
    private LocalDateTime seckillTime;
}
